<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2020/1/15
  Time: 13:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>传统文件上传</h3>
<%--有文件上传记得enctype="multipart/form-data"--%>
<form action="upload/deprecatedUpload" method="post" enctype="multipart/form-data">
    选择文件：
    <input type="file" name="upload"/><br/>
    <input type="text" name="name"/><br/>
    <input type="text" name="age"/><br/>
    <input type="submit" value="上传"/>
</form>
<h3>SpringMVC文件上传</h3>
<form action="upload/mvcUpload" method="post" enctype="multipart/form-data">
    选择文件：
    <input type="file" name="upload"/><br/>
    <input type="text" name="name"/><br/>
    <input type="text" name="age"/><br/>
    <input type="submit" value="上传"/>
</form>
<h3>SpringMVC文件跨服上传</h3>
<form action="upload/remoteUpload" method="post" enctype="multipart/form-data">
    选择文件：
    <input type="file" name="upload"/><br/>
    <input type="text" name="name"/><br/>
    <input type="text" name="age"/><br/>
    <input type="submit" value="上传"/>
</form>
</body>
</html>
